package de.andreavicentini.teatralia.pages.events;

import de.andreavicentini.teatralia.pages.TDate;
import de.andreavicentini.teatralia.pages.repertoire.IPlay;



public class Event implements Comparable<Event> {

	public Event(IPlay play, TDate date, Location location) {
		this(play, date, location, null);
	}
	
	public Event(IPlay play, TDate date, Location location, String fotos) {
		this.play = play;
		this.date = date;
		this.location = location;
		this.fotos = fotos;
	}
	
	private final String fotos;
	public String getFotos() {
		return this.fotos;
	}
	
	private final IPlay play;
	public IPlay getPlay() {
		return play;
	}
	
	private final TDate date;
	public TDate getDate() {
		return date;
	}
	
	private final Location location;
	public Location getLocation() {
		return location;
	}
	
	public int compareTo(Event o) {
		Long long1 = this.date.getTime();
		Long long2 = o.getDate().getTime();
		return long1.compareTo(long2);
	}
	
}
